{% extends "base.html" %}
{% block content%}

<div id="yui-main">
    	<div class="yui-b">
    		{% if entries %}
			{% for entry in entries %}
			
        	<div class="blog" id="post-{{entry.key}}">
            	<div class="blog-hd">
                	<h2><a href="/{{ entry.link }}" rel="bookmark" title="Permanent Link to {{entry.title}}">{{entry.title}}</a></h2>
                    <p>发表时间:{{entry.date|datetz:"Y-m-d"}} | 
                    	<img src="/themes/{{ blog.theme_name }}/img/PostCategIco.gif"/>分类:{%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}
                    	{% if entry.strtags %}标签:{%for tag in entry.tags%}<a href="/tag/{{tag|urlencode}}">{{tag}}</a>, {%endfor%}{%endif%} | 
                    	<a href="/{{ entry.link }}">阅读全文</a> | 
                    	{%if self.is_admin%}<a href="{{entry.edit_url}}">编辑</a> | {%endif%}
                    	<img src="/themes/{{ blog.theme_name }}/img/ComListHead.png"/><a href="/{{entry.link}}#comments">点评({{entry.commentcount}})&#187;</a></p>
                </div>
                <div class="blog-bd">
                	<p>{{entry.content_excerpt}}</p>
                </div>
            </div>
            {%endfor%}
            {%endif%}
            <div id="pages">
                <ul>
                 	{% if show_prev %}
					<li><a href="/page/{{ pageindex|add:"-1" }}">&laquo; 上一页</a></li>
					{% endif %}
					{% if show_next %}
					<li><a href="/page/{{ pageindex|add:"1" }}">下一页 &raquo;</a></li>
					{% endif %}
                </ul>
            </div>
      </div></div>
      {% include "rightbar.html" %}
 {%endblock%}